/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ru.vsu.csf.qasystem.morph;

import java.util.ArrayList;
import java.util.List;
import ru.vsu.csf.qasystem.morph.enumtypes.UnionType;

/**
 * Союз.
 * @author Руслан
 */
public class Union extends Word {
    
    /**
     * Тип союза.
     */
    private UnionType type;
    
    public Union(String text, UnionType type) {
        this.text = text;
        this.mainForm = text;
        this.type = type;
    }

    public UnionType getType() {
        return type;
    }

    public void setType(UnionType type) {
        this.type = type;
    }
    
    public static List<Union> getAllUnions() {
        List<Union> result = new ArrayList<Union>();
        result.add(new Union("и", UnionType.AND));
        result.add(new Union("или", UnionType.OR));
        result.add(new Union("но", UnionType.BUT));
        result.add(new Union("потому", UnionType.BECAUSE));
        result.add(new Union("если", UnionType.IF));
        result.add(new Union("чтобы", UnionType.THAT));
        result.add(new Union("то", UnionType.THEN));
        result.add(new Union("поэтому", UnionType.SO));
        return result;
    }
}
